home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DDJMAG
/
DDJ9109.ZIP
/
BIGQUEST.LST
< prev
next >
Wrap
File List
|
1991-08-21
|
1KB
|
56 lines
_LITTL┼ LANGUAGES¼ BI╟ QUESTIONS_
b∙ Ra∙ Valdes
Example 1:
(a)
char s[] = {
'\t'
'0',
'\n',
'}',
';',
'\n',
'\n',
'/',
'*',
'\n',
...213 lines deleted...
0
};
/*
* The string s is a representation of the body
* of this program from '0' to the end.
*/
main()
{
int i;
printf("char\ts[]={\n");
for (i=0 ; s[i]; i++)
printf("\t%d,\n",s[i]);
printf("%s",s);
}
(b)
( (lambda (x) (list x (list (quote quote) x)))
(quote
(lambda (x) (list x (list (quote quote) x))) ))
(c)
S N=$C(13)_$C(10)_$C(9) S Q=$C(34) S S="W N_""S N=$C(13)_$C(10)_$C(9)
S Q=$C(34) S S=""_Q W Q_S_N F I=1:1 S C=$E(S,I) Q:$L(C)=0 W $S(I=5:Q_C,I=45:Q
_C,C=$C(59):N,1:C);Q;"
W N_"S N=$C(13)_$C(10)_$C(9) S Q=$C(34) S S="_Q W Q_S_N F I=1:1 S C=
$E(S,I) Q:$L(C)=0 W $S(I=5:Q_C,I=45:Q_C,C=$C(59):N,1:C)
Q
è